package com.learn.hibernatevalidator.chapter02.containerelement.optional;

import java.util.Optional;

/**
 * @author: liyf
 * @create: 2024-12-20 22:58
 **/
public class Car {

    private Optional<@MinTowingCapacity(1000) Integer> towingCapacity = Optional.empty();

    public void setTowingCapacity(int alias) {
        towingCapacity = Optional.of(alias);
    }
}
